package com.zmj.sy.mom.srv.aps.bean.entity.mes;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zmj.sy.mom.srv.aps.bean.entity.base.BaseEntity;
import com.zmj.sy.mom.srv.aps.utils.Comment;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Comment("钢板")
@Getter
@Setter
@TableName("tb_mes_plate")
public class Plate extends BaseEntity {

    @Comment("钢板物料编号")
    private String materCode;

    @Comment("钢板物料名称")
    private String materName;

    @Comment("长度(mm)")
    private BigDecimal length;

    @Comment("宽度(mm)")
    private BigDecimal width;

    @Comment("厚度/规格型号")
    private String norm;

    @Comment("钢板重量（kg）")
    private BigDecimal weight;

    @Comment("材质")
    private String texture;

//    @Comment("钢板状态，字典 plateState 1套料完成 2领料中 3待开工 4开工中 5已报工")
      @Comment("领料状态: 1待打包 2已领料未下发 3已领料已下发 4已出库 5已开工 6已报工 7分捡完成")
    private Integer status;

    @Comment("套料图号")
    private String nestId;

    @Comment("切割净重")
    private BigDecimal nestWeight;

    @Comment("利用率")
    private BigDecimal nestRate;

    @Comment("NestPlate表的ID")
    private Integer nestPlateId;

    @Comment("切割长度")
    private BigDecimal cutLength;

    @Comment("切割程序")
    private String cutProcess;

    @Comment("当前工序")
    private String phaseCode;

    @Comment("工序链")
    private String workChain;

//    @Comment("工作组链")
//    private String chainGroupCode;

    @Comment("当前工序状态，0待开工1开工中2已报工3分捡完成")
    private Integer phaseStatus;

    @Comment("套料图纸")
    private String nestingDrawing;

    @Comment("领料人ID")
    private Integer pickUserId;

    @Comment("领料人名称")
    private Integer pickUserName;

    @Comment("领料时间")
    private LocalDateTime pickDateTime;

    @Comment("套料时间")
    private LocalDateTime nestDateTime;

    @Comment("炉批号")
    private String heatNumber;

    // 对于MES来说解除套料锁定，可以修改套料图，对于APS来说是钢板锁定，不让钢板进行切割等后续流程
    @Comment("是否解锁 1 锁定 0 正常")
    private Integer nestLock;

}
